package com.itheima.dto;

import com.itheima.entity.Essay;
import lombok.Data;

@Data
public class EssayDTO {
    private String catename;
    private Integer id;
    private String title;
    private String author;
    private String keywords;
    private String description;
    private String content;
    private String pic;
    private Integer click;
    private Integer ishot;
    private Integer istop;
    private Long create_date;
    private Long update_date;
    private Integer cateid;
    private String tags;
    private Integer status;
    private String lovenum;
    private Integer user_id;
    private String default_data;

    public Essay getEssayVO(){
        Essay essayVO = new Essay();
        essayVO.setCatename(catename);
        essayVO.setId(id);
        essayVO.setTitle(title);
        essayVO.setAuthor(author);
        essayVO.setKeywords(keywords);
        essayVO.setDescription(description);
        essayVO.setContent(content);
        essayVO.setPic(pic);
        essayVO.setClick(click);
        essayVO.setIshot(ishot);
        essayVO.setIstop(istop);
        essayVO.setCreateDate(create_date);
        essayVO.setUpdateDate(update_date);
        essayVO.setCateid(cateid);
        essayVO.setTags(tags);
        essayVO.setStatus(status);
        essayVO.setLovenum(lovenum);
        essayVO.setUserId(user_id);
        essayVO.setDefaultData(default_data);
        return essayVO;
    }
}
